package logic;

/**
 * class representing point 2D with x and y coordinate
 * @author Rekin
 *
 */
public class Point {
	
	/**
	 * default constructor - point at (0,0)
	 */
	public Point(){
		x=0;
		y=0;
	}
	
	/**
	 * constructs Point with given coordinates
	 * @param x
	 * @param y
	 */
	public Point(int x,int y){
		this.x = x;
		this.y = y;
	}
	
	/**
	 * @return x
	 */
	public int getX() {
		return x;
	}
	
	/**
	 * @param x
	 */
	public void setX(int x) {
		this.x = x;
	}
	
	/**
	 * @return Y
	 */
	public int getY() {
		return y;
	}
	
	/**
	 * @param y
	 */
	public void setY(int y) {
		this.y = y;
	}

	private int x;
	private int y;
}
